local zhengdian = fk.CreateSkill{
  name = "wk_heg__zhengdian",
}

Fk:loadTranslationTable{
  ["wk_heg__zhengdian"] = "政典",
  [":wk_heg__zhengdian"] = "当锦囊牌于你的回合内因弃置而置入弃牌堆时，你可明置一张花色相同的手牌，改为将此牌置于牌堆顶或牌堆底。",
  ["#wk_heg__zhengdian-choose"] = "政典：你可选择一张牌，将之置于牌堆顶或牌堆底",
  ["#wk_heg__zhengdian-show"] = "政典：明置一张同花色的手牌",
}

--   events = {fk.AfterCardsMove},
--   can_trigger = function (self, event, target, player, data)
--     if player:hasSkill(self) and player.phase ~= Player.NotActive and #H.GetShownCards(player) ~= player:getHandcardNum() then
--       local cards = {}
--       for _, move in ipairs(data) do
--         if move.toArea == Card.DiscardPile then
--           for _, info in ipairs(move.moveInfo) do
--             if Fk:getCardById(info.cardId).type == Card.TypeTrick then
--               table.insert(cards, info.cardId)
--             end
--           end
--         end
--       end
--       --cards = U.moveCardsHoldingAreaCheck(player.room, cards)
--       -- cards = table.filter(cards, function (cid)
--       --   return player.room:getCardArea(cid) == Card.DiscardPile
--       -- end)
--       self.cost_data = cards
--       return #cards > 0
--     end
--   end,
--   on_cost = function (self, event, target, player, data)
--     local room = player.room
--     local cs = self.cost_data
--     local notshowns = table.filter(player:getCardIds("h"), function (id)
--       return Fk:getCardById(id):getMark(MarkEnum.ShownCards) == 0 end)
--     local csfilter = table.filter(cs, function (cid)
--       return table.find(notshowns, function (ncid) return Fk:getCardById(ncid).suit == Fk:getCardById(cid).suit end) ~= nil
--     end)
--     local pat = ".|.|.|.|.|.|"..table.concat(csfilter, ",")
--     local cards = room:askForCard(player, 1, 1, false, self.name, true, pat, "#wk_heg__zhengdian-choose", cs)
--     if #cards > 0 then
--       self.cost_data = cards
--       return true
--     end
--   end,
--   on_use = function (self, event, target, player, data)
--     local room = player.room
--     local toput = self.cost_data
--     local notshowns = table.filter(player:getCardIds("h"), function (id)
--       return Fk:getCardById(id):getMark(MarkEnum.ShownCards) == 0 and Fk:getCardById(id).suit == Fk:getCardById(toput[1]).suit end)
--     local pat = ".|.|.|.|.|.|"..table.concat(notshowns, ",")
--     local cards = player.room:askForCard(player, 1, 1, false, self.name, false, pat, "#wk_heg__zhengdian-show")
--     if #cards > 0 then
--       H.ShowCards(player, cards)
--     end
--     toput = U.moveCardsHoldingAreaCheck(room, toput)
--     toput = table.filter(toput, function (cid)
--       return player.room:getCardArea(cid) == Card.DiscardPile
--     end)
--     if #toput == 0 then return end
--     local guanxing = room:askForGuanxing(player, toput, {0, 1}, {0, 1}, nil, true)
--     room:moveCards({
--       ids = toput,
--       toArea = Card.DrawPile,
--       moveReason = fk.ReasonPut,
--       drawPilePosition = #guanxing.top > 0 and 1 or -1,
--       proposer = player.id,
--       skillName = self.name,
--     })
--   end,
-- }

return zhengdian